package com.ym.b2b.product.dao.impl;

import com.ym.b2b.commons.dao.BaseDao;
import com.ym.b2b.product.dao.EmBProductPriceDao;
import com.ym.b2b.product.sqlbean.EmBProductPrice;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public class EmBProductPriceDaoImpl<T> extends BaseDao<T> implements EmBProductPriceDao{
    @Override
    public void deleteEmBProductPrice(EmBProductPrice emBProductPrice) throws DataAccessException {
        delete("EmBProductPrice.deleteEmBProductPrice", emBProductPrice);
    }

    @Override
    public void insertEmBProductPrice(EmBProductPrice emBProductPrice) throws DataAccessException {
        insert("EmBProductPrice.insertEmBProductPrice",emBProductPrice);
    }

    @Override
    public void updateEmBProductPrice(EmBProductPrice emBProductPrice) throws DataAccessException {
        update("EmBProductPrice.updateEmBProductPrice",emBProductPrice);
    }

    @Override
    public EmBProductPrice searchEmBProductPrice(EmBProductPrice emBProductPrice) throws DataAccessException {
        return (EmBProductPrice)find("EmBProductPrice.searchEmBProductPrice",emBProductPrice);
    }

    @Override
    public List<EmBProductPrice> searchEmBProductPriceList(EmBProductPrice emBProductPrice) throws DataAccessException {
        return list("EmBProductPrice.searchEmBProductPrice",emBProductPrice);
    }
}
